package com.baidu.mobstat;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import com.baidu.mobstat.a.b;
import java.lang.ref.WeakReference;

class o
  implements Runnable
{
  private long b;
  private WeakReference<Context> c;
  private long d;
  private WeakReference<Context> e;

  public o(m paramm, long paramLong1, Context paramContext1, long paramLong2, Context paramContext2)
  {
    this.b = paramLong1;
    this.c = new WeakReference(paramContext1);
    this.d = paramLong2;
    this.e = new WeakReference(paramContext2);
  }

  public void run()
  {
    if (this.c.get() != this.e.get())
    {
      b.b(new Object[] { "stat", "onPause() 或 onResume()安放错误||onPause() or onResume() install error." });
      return;
    }
    long l = this.b - this.d;
    Activity localActivity = (Activity)this.c.get();
    if (localActivity == null)
    {
      b.b(new Object[] { "stat", "onPause,WeakReference is already been released" });
      return;
    }
    StringBuilder localStringBuilder = new StringBuilder();
    localStringBuilder.append(localActivity.getComponentName().getShortClassName());
    if (localStringBuilder.charAt(0) == '.')
      localStringBuilder.deleteCharAt(0);
    b.a("stat", "new page view, page name = " + localStringBuilder.toString() + ",stay time = " + l + "(ms)");
    m.a(this.a).a(localStringBuilder.toString(), l);
    m.a(this.a, (Context)this.c.get(), this.b);
  }
}

/* Location:           C:\Users\god\Desktop\liunianjishiben_V1.1_mumayi_3745b_dex2jar.jar
 * Qualified Name:     com.baidu.mobstat.o
 * JD-Core Version:    0.5.4
 */